package com.ruoyi.system.api.domain.blog;


import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

public class Tag {

  private long tagId;
  private String tagName;
  private String aliasName;
  private String description;
  private Date createTime;

  @Override
  public String toString() {
    return "Tag{" +
            "tagId=" + tagId +
            ", tagName='" + tagName + '\'' +
            ", aliasName='" + aliasName + '\'' +
            ", description='" + description + '\'' +
            ", createTime=" + createTime +
            '}';
  }

  public long getTagId() {
    return tagId;
  }

  public void setTagId(long tagId) {
    this.tagId = tagId;
  }


  public String getTagName() {
    return tagName;
  }

  public void setTagName(String tagName) {
    this.tagName = tagName;
  }


  public String getAliasName() {
    return aliasName;
  }

  public void setAliasName(String aliasName) {
    this.aliasName = aliasName;
  }


  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }


  public String getCreateTime() {
    if(createTime == null){
      return null;
    }
    //获取日期
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    String datef = sdf.format(createTime);
    return datef;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

}
